import request from '@/utils/request'

export function getDeviceUser(deviceId) {
  return request({
    url: '/account/getDeviceUser',
    method: 'GET',
    params: { deviceId: deviceId }
  })
}

export function bindDeviceUser(data) {
  return request({
    url: '/account/bindDeviceUser',
    method: 'POST',
    data: data
  })
}

export function unbindDeviceUser(data) {
  return request({
    url: '/account/unbindDeviceUser',
    method: 'POST',
    data: data
  })
}